
<!DOCTYPE html>
{% load static %}
{% load i18n %}
{#{% load core_tags_filters %}#}
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="Quickly get a project started with any
    of our examples ranging from using parts of the framework to custom components and layouts.">

    <title>{% block title %}Django 房产网{% endblock %}</title>
    <link rel="canonical" href="https://getbootstrap.com/docs/4.5/examples/">
    <link rel="stylesheet" href="{% static 'bootstrap-4.5.0-dist/css/bootstrap.min.css' %}">
    <style>
        body {
            <!--Prevent scroll on narrow devices -->
            overflow-x: hidden;
            font-family: 'Inter',Arial,sans-serif;
            background: #f6f8ff;
            padding-top:56px;
        }
    </style>
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="{% static 'jquery3.5.1/jquery.min.js' %}" ></script>
    <script src="{% static 'poperjs.1.16/popper.min.js' %}" ></script>
    <script src="{% static 'bootstrap-4.5.0-dist/js/bootstrap.min.js' %}" ></script>

    {% block css %} {% endblock %}


</head>
<body>
    <nav class="navbar navbar-expand-md fixed-top navbar-light box-shadow bg-white">
        <div class="container">
            <a class="navbar-brand align-items-md-center" href="web/index.html">Django双语示例</a>
            <form class="form-inline ml-3-md" action="{% url 'set_language' %}" method="post">
                {% csrf_token %}
                <div class="input-group">
                    <input name="next" type="hidden" value="{{ redirect_to }}" />
                    <select name="language" class="form-control">
                        {% get_current_language as LANGUAGE_CODE %}
                        {% get_available_languages as LANGUAGES %}
                        {% get_language_info_list for LANGUAGES as languages %}
                        {% for language in languages %}
                            <option value="{{ language.code }}" {% if language.code == LANGUAGE_CODE %} selected {% endif %}>
                                {{ language.name_local }}
                            </option>
                        {% endfor %}

                    </select>
                    <div class="input-group-append">
                        <button class="btn btn-inline btn-sm bg-warning" type="submit">
                            {% trans "Select" %}
                        </button>
                    </div>
                </div>

            </form>

        </div>
    </nav>


    {% block content %} {% endblock %}


    <footer class="bg-footer bg-light">
        <div class="container pt-3 pb-2 px-3 px-md-2">
            <ul class="bd-footer-links list-unstyled text-muted list-inline pb-2">
                <li class="list-inline-item">
                    <small>&#169; Example.com</small>
                </li>
                <li class="list-inline-item right"><a href="#"><small>{% trans "Privacy & Cookie" %}</small></a></li>
                <li class="list-inline-item right"><a href="#"><small>{% trans "Terms & Conditions" %}</small></a></li>
            </ul>
        </div>
    </footer>

    <!-- Optional JavaScript -->
    {% block js %} {% endblock %}

</body>
</html>